package com.lry.event;

import com.lry.bean.ExceptionNotice;
import com.lry.send.INoticeSendComponent;
import lombok.extern.slf4j.Slf4j;

import java.util.List;

@Slf4j
public class NoticeSendListener extends AbstractNoticeSendListener{

    public NoticeSendListener(List<INoticeSendComponent<ExceptionNotice>> list) {
        super(list);
    }

    @Override
    public void onApplicationEvent(ExceptionNoticeEvent exceptionNoticeEvent) {
        log.debug("消息同步发送");
        send(exceptionNoticeEvent.getExceptionNotice());
    }
}
